package com.gamecauca.common;

public class GameConfig {

	public static int getPrice(int item) {
		if (item == Constant.BANHMI)
			return Config.asInt("price.banhmi", 10);
		if (item == Constant.HAMBERGER)
			return Config.asInt("price.hamberger", 11);
		if (item == Constant.BANHCHUNG)
			return Config.asInt("price.banhchung", 12);
		if (item == Constant.DUIGA)
			return Config.asInt("price.duiga", 13);
		if (item == Constant.MIGOI)
			return Config.asInt("price.migoi", 14);
		if (item == Constant.THUOCUONG)
			return Config.asInt("price.thuocuong", 15);
		if (item == Constant.COCACOLA)
			return Config.asInt("price.cocacola", 16);
		if (item == Constant.SUATUOI)
			return Config.asInt("price.suatuoi", 18);
		if (item == Constant.XIGA)
			return Config.asInt("price.xiga", 100);
		if (item == Constant.NUOCTANGLUC)
			return Config.asInt("price.nuoctangluc", 200);
		if (item == Constant.RUOUNAPOLEONG)
			return Config.asInt("price.ruounapoleong", 80);
		if (item == Constant.RUOUNEP)
			return Config.asInt("price.ruounephanoi", 140);
		if (item == Constant.RUOUNUNHIHONG)
			return Config.asInt("price.ruoununhihong", 250);
		if (item == Constant.DONGHOCAT)
			return Config.asInt("price.donghocat", 50);
		if (item == Constant.DONGHOQUALAC)
			return Config.asInt("price.donghoqualac", 80);
		if (item == Constant.DONGHODEOTAY)
			return Config.asInt("price.donghodeotay", 135);
		if (item == Constant.BINHACQUY)
			return Config.asInt("price.binhacquy", 350);
		if (item == Constant.BOMBANG)
			return Config.asInt("price.bombang", 350);
		if (item == Constant.BOMSINHHOC)
			return Config.asInt("price.bomsinhhoc", 350);
		if (item == Constant.BOMNHO)
			return Config.asInt("price.bomnho", 200);
		if (item == Constant.BOMTO)
			return Config.asInt("price.bomto", 300);
		if (item == Constant.DAYCAUNGAN)
			return Config.asInt("price.daycaungan", 50);
		if (item == Constant.DAYCAUDAI)
			return Config.asInt("pricedaycaudai", 60);
		if (item == Constant.DU)
			return Config.asInt("price.du", 20);
		if (item == Constant.NONLA)
			return Config.asInt("price.nonla", 30);
		return -1;
	}

	public static int getEffectTime(int item) {
		if (item == Constant.BANHMI)
			return Config.asInt("effect-time.banhmi", 30);
		if (item == Constant.HAMBERGER)
			return Config.asInt("effect-time.hamberger", 30);
		if (item == Constant.BANHCHUNG)
			return Config.asInt("effect-time.banhchung", 30);
		if (item == Constant.DUIGA)
			return Config.asInt("effect-time.duiga", 30);
		if (item == Constant.MIGOI)
			return Config.asInt("effect-time.migoi", 30);
		if (item == Constant.THUOCUONG)
			return Config.asInt("effect-time.thuocuong", 30);
		if (item == Constant.COCACOLA)
			return Config.asInt("effect-time.cocacola", 30);
		if (item == Constant.SUATUOI)
			return Config.asInt("effect-time.suatuoi", 30);
		if (item == Constant.XIGA)
			return Config.asInt("effect-time.xiga", 40);
		if (item == Constant.NUOCTANGLUC)
			return Config.asInt("effect-time.nuoctangluc", 30);
		if (item == Constant.RUOUNAPOLEONG)
			return Config.asInt("effect-time.ruounapoleong", 30);
		if (item == Constant.RUOUNEP)
			return Config.asInt("effect-time.ruounephanoi", 30);
		if (item == Constant.RUOUNUNHIHONG)
			return Config.asInt("effect-time.ruoununhihong", 30);
		if (item == Constant.BINHACQUY)
			return Config.asInt("effect-time.binhacquy", 10);
		if (item == Constant.BOMBANG)
			return Config.asInt("effect-time.bombang", 10);
		if (item == Constant.BOMSINHHOC)
			return Config.asInt("effect-time.bomsinhhoc", 10);
		return -1;
	}

	public static int getEffectValue(int item) {
		if (item == Constant.BANHMI)
			return Config.asInt("effect-value.banhmi", 10);
		if (item == Constant.HAMBERGER)
			return Config.asInt("effect-value.hamberger", 14);
		if (item == Constant.BANHCHUNG)
			return Config.asInt("effect-value.banhchung", 18);
		if (item == Constant.DUIGA)
			return Config.asInt("effect-value.duiga", 24);
		if (item == Constant.MIGOI)
			return Config.asInt("effect-value.migoi", 28);
		if (item == Constant.THUOCUONG)
			return Config.asInt("effect-value.thuocuong", 10);
		if (item == Constant.COCACOLA)
			return Config.asInt("effect-value.cocacola", 15);
		if (item == Constant.SUATUOI)
			return Config.asInt("effect-value.suatuoi", 25);
		if (item == Constant.XIGA)
			return Config.asInt("effect-value.xiga", 50);
		if (item == Constant.NUOCTANGLUC)
			return Config.asInt("effect-value.nuoctangluc", 50);
		if (item == Constant.RUOUNAPOLEONG)
			return Config.asInt("effect-value.ruounapoleong", 25);
		if (item == Constant.RUOUNEP)
			return Config.asInt("effect-value.ruounephanoi", 10);
		if (item == Constant.RUOUNUNHIHONG)
			return Config.asInt("effect-value.ruoununhihong", 15);
		if (item == Constant.DONGHOCAT)
			return Config.asInt("effect-value.donghocat", 5);
		if (item == Constant.DONGHOQUALAC)
			return Config.asInt("effect-value.donghoqualac", 10);
		if (item == Constant.DONGHODEOTAY)
			return Config.asInt("effect-value.donghodeotay", 20);
		return -1;
	}

	public static float getFishWeight(int kind) {
		if (kind == Constant.FISH1)
			return Config.asFloat("fish1.weight", 1f);
		if (kind == Constant.FISH2)
			return Config.asFloat("fish2.weight", 1.5f);
		if (kind == Constant.FISH3)
			return Config.asFloat("fish3.weight", 3f);
		if (kind == Constant.FISH4)
			return Config.asFloat("fish4.weight", 4f);
		if (kind == Constant.FISH5)
			return Config.asFloat("fish5.weight", 5f);
		if (kind == Constant.FISH6)
			return Config.asFloat("fish6.weight", 5.5f);
		if (kind == Constant.FISH7)
			return Config.asFloat("fish7.weight", 7f);
		if (kind == Constant.FISH8)
			return Config.asFloat("fish8.weight", 8f);
		if (kind == Constant.FISH9)
			return Config.asFloat("fish9.weight", 9.5f);
		if (kind == Constant.FISH10)
			return Config.asFloat("fish10.weight", 10f);
		if (kind == Constant.FISH11)
			return Config.asFloat("fish11.weight", 11f);
		if (kind == Constant.FISH12)
			return Config.asFloat("fish12.weight", 12.5f);
		if (kind == Constant.FISH13)
			return Config.asFloat("fish13.weight", 13f);
		if (kind == Constant.FISH14)
			return Config.asFloat("fish14.weight", 15f);
		if (kind == Constant.FISH15)
			return Config.asFloat("fish15.weight", 16f);
		if (kind == Constant.FISH16)
			return Config.asFloat("fish16.weight", 17f);
		if (kind == Constant.FISH17)
			return Config.asFloat("fish17.weight", 18f);
		if (kind == Constant.FISH18)
			return Config.asFloat("fish18.weight", 19f);
		return -1;
	}

	public static int getGiaTri(int kind) {
		if (kind == Constant.FISH1)
			return Config.asInt("fish1.priceforsell", 5);
		if (kind == Constant.FISH2)
			return Config.asInt("fish2.priceforsell", 7);
		if (kind == Constant.FISH3)
			return Config.asInt("fish3.priceforsell", 8);
		if (kind == Constant.FISH4)
			return Config.asInt("fish4.priceforsell", 9);
		if (kind == Constant.FISH5)
			return Config.asInt("fish5.priceforsell", 10);
		if (kind == Constant.FISH6)
			return Config.asInt("fish6.priceforsell", 11);
		if (kind == Constant.FISH7)
			return Config.asInt("fish7.priceforsell", 15);
		if (kind == Constant.FISH8)
			return Config.asInt("fish8.priceforsell", 16);
		if (kind == Constant.FISH9)
			return Config.asInt("fish9.priceforsell", 17);
		if (kind == Constant.FISH10)
			return Config.asInt("fish10.priceforsell", 17);
		if (kind == Constant.FISH11)
			return Config.asInt("fish11.priceforsell", 18);
		if (kind == Constant.FISH12)
			return Config.asInt("fish12.priceforsell", 19);
		if (kind == Constant.FISH13)
			return Config.asInt("fish13.priceforsell", 21);
		if (kind == Constant.FISH14)
			return Config.asInt("fish14.priceforsell", 22);
		if (kind == Constant.FISH15)
			return Config.asInt("fish15.priceforsell", 23);
		if (kind == Constant.FISH16)
			return Config.asInt("fish16.priceforsell", 25);
		if (kind == Constant.FISH17)
			return Config.asInt("fish17.priceforsell", 27);
		if (kind == Constant.FISH18)
			return Config.asInt("fish18.priceforsell", 29);
		return -1;
	}

	public static int getFishBlood(int kind) {
		if (kind == Constant.FISH1)
			return Config.asInt("fish1.blood", 10);
		if (kind == Constant.FISH2)
			return Config.asInt("fish2.blood", 15);
		if (kind == Constant.FISH3)
			return Config.asInt("fish3.blood", 15);
		if (kind == Constant.FISH4)
			return Config.asInt("fish4.blood", 15);
		if (kind == Constant.FISH5)
			return Config.asInt("fish5.blood", 15);
		if (kind == Constant.FISH6)
			return Config.asInt("fish6.blood", 20);
		if (kind == Constant.FISH7)
			return Config.asInt("fish7.blood",20);
		if (kind == Constant.FISH8)
			return Config.asInt("fish8.blood", 20);
		if (kind == Constant.FISH9)
			return Config.asInt("fish9.blood", 20);
		if (kind == Constant.FISH10)
			return Config.asInt("fish10.blood", 20);
		if (kind == Constant.FISH11)
			return Config.asInt("fish11.blood", 20);
		if (kind == Constant.FISH12)
			return Config.asInt("fish12.blood", 20);
		if (kind == Constant.FISH13)
			return Config.asInt("fish13.blood", 30);
		if (kind == Constant.FISH14)
			return Config.asInt("fish14.blood", 30);
		if (kind == Constant.FISH15)
			return Config.asInt("fish15.blood", 30);
		if (kind == Constant.FISH16)
			return Config.asInt("fish16.blood", 40);
		if (kind == Constant.FISH17)
			return Config.asInt("fish17.blood", 50);
		if (kind == Constant.FISH18)
			return Config.asInt("fish18.blood", 60);
		return -1;
	}

	public static float getBossBlood(int kind) {
		if(kind == Constant.PIRATE1) return Config.asInt("haitac1.blood", 200);
		if(kind == Constant.PIRATE2) return Config.asInt("haitac2.blood", 300);
		if(kind == Constant.PIRATE3) return Config.asInt("haitac3.blood", 500);
		if(kind == Constant.BOSS1) return Config.asInt("boss1.blood", 300);
		if(kind == Constant.BOSS2) return Config.asInt("boss2.blood", 400);
		if(kind == Constant.BOSS3) return Config.asInt("boss3.blood", 600);
		return -1;
	}

	public static float getBossDamage(int kind) {
		if(kind == Constant.PIRATE1) return Config.asInt("haitac1.damage", 10);
		if(kind == Constant.PIRATE2) return Config.asInt("haitac2.damage", 15);
		if(kind == Constant.PIRATE3) return Config.asInt("haitac3.damage", 25);
		if(kind == Constant.BOSS1) return Config.asInt("boss1.damage", 15);
		if(kind == Constant.BOSS2) return Config.asInt("boss2.damage", 25);
		if(kind == Constant.BOSS3) return Config.asInt("boss3.damage", 35);
		return -1;
	}

	public static float getToolDamage(int kind) {
		if (kind == Constant.BINHACQUY)
			return Config.asInt("damage.binhacquy", 4);
		if (kind == Constant.BOMBANG)
			return Config.asInt("damage.bombang", 3);
		if (kind == Constant.BOMSINHHOC)
			return Config.asInt("damage.bomsinhhoc", 5);
		if (kind == Constant.BOMNHO)
			return Config.asInt("damage.bomnho", 8);
		if (kind == Constant.BOMTO)
			return Config.asInt("damage.bomto", 16);
		return -1;
	}

	public static String getItemInfo(int kind) {
		return null;
	}
	public static int getPlayerBood() {
		return Config.asInt("player.blood", 120);
	}
	public static int getPlayerStreng() {
		return Config.asInt("player.streng", 50);
	}
	public static int getPlayerMoney() {
		return Config.asInt("player.initmoney", 500);
	}
	public static int getPlayerDamage() {
		return Config.asInt("player.damage", 50);
	}
	public static int getLevelTime() {
		return Config.asInt("player.timeinlevel", 4);
	}
	public static int getlengOfLine() {
		return Config.asInt("player.lengofline",200);
	}

}
